/*
 * Main.java
 *
 * Created on February 20, 2007, 8:17 AM
 *
 */
/*
 *
 * @author Joseph F. Pleso
 */

package edu.psu.bd.math.vertexreplacer;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
//import java.lang.*;


public class Main {
    private static JFrame frame;
    private static boolean isRandom;
    final static Dimension DIMENSION = new Dimension (600,600);
    
    public static void main(String[] args) {
        frame = new JFrame("VertexReplacer");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        /*final JOptionPane optionPane = new JOptionPane(
    "Use spectral layout to initalize coordinates?",
    JOptionPane.QUESTION_MESSAGE,
    JOptionPane.YES_NO_OPTION);
        JDialog dialog = optionPane.createDialog(frame, "");
        dialog.show();
        while (optionPane.getValue() == optionPane.UNINITIALIZED_VALUE)
        {
            
        }
        if (optionPane.getValue() == null)
            System.exit(0);
        if (((Integer) optionPane.getValue()) == optionPane.NO_OPTION)
            isRandom = true;
        else
            isRandom = false;
            */
        isRandom = false;
        GraphEditor.start(frame);
        
    }
      
    public static boolean getIsRandom ()
    {
        return isRandom;
    }
    public static void ShowDialog (String s){
        JOptionPane.showMessageDialog(frame, s);
    }
}
